package com.ifnk.portaljava.entity;

import lombok.*;
import lombok.experimental.SuperBuilder;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
public class SuccessResult<T> extends ServiceResult<T> {


    public SuccessResult(T data) {
        super();
        val success = ResultCode.success();
        this.setSuccess(true);
        this.setCode(success.getCode());
        this.setMsg(success.getMessage());
        this.setData(data);
    }
}
